﻿using System.Xml;
using repliback4.Xml;
using System;

namespace repliback4.Net.Protocol.Messages {

    [Attributes.RequestStream( "stream", "stream", JabberNamespaces.JABBER_STREAM, typeof( Stream ) )]
    public class Stream : BaseStream {
        public Stream ( XmlElement element ) : base( element ) { }
        public Stream ( XmlDocument xDoc ) : base( xDoc ) {
            this.Version = "1.0";
            this.DefaultNamespaceURI = JabberNamespaces.JABBER_CLIENT;
        }
        public String Version {
            set { this.Xml.SetAttribute( "version", value ); }
            get { return this.Xml.GetAttribute( "version" ); }
        }
    }



}
